home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / xw2.000 / xw2 / xw / csource / xgnu.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-27  |  493 b   |  31 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #ifdef XbW_SYSDEF_X11_VERSION
  5. #include <ctype.h>
  6. #endif
  7.  
  8.  
  9. char itoastr[12];
  10. /*{{{  itoa(*/
  11. char *itoa(int nr, char *target, int radix){
  12.   sprintf(itoastr,"%d",(int)nr);
  13.   if (target != NULL) {
  14.     strcpy(target,itoastr);
  15.     };
  16.   return(itoastr);
  17.   };
  18. /*}}}  */
  19.  
  20. /*{{{  strupr(*/
  21. char *strupr(char *sstr){
  22.   int ii;
  23.   ii = 0;
  24.   while (sstr[ii] !=0){
  25.     sstr[ii] &= toupper(sstr[ii]);
  26.     ii++;
  27.     };
  28.   return(sstr);
  29.   };
  30. /*}}}  */
  31.